package com.zide.ams.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zide.ams.domain.po.AmsLike;
import com.zide.ams.domain.vo.search.AmsLikeSearchVO;
import com.zide.common.core.domain.PageResult;
import com.zide.framework.config.mybatisplus.XianYingMapperPlus;
import org.apache.ibatis.annotations.Mapper;

/**
 * 文章点赞Mapper接口
 * 
 * @author zide
 * @date 2024-05-08
 */
@Mapper
public interface AmsLikeMapper extends XianYingMapperPlus<AmsLike> {

    default PageResult<AmsLike> selectPage(AmsLikeSearchVO searchVO) {
        return selectPage(searchVO, new LambdaQueryWrapper<AmsLike>().orderByDesc(AmsLike::getId));
    }
}
